<%@page import="news.biz.BoardBiz"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");
		
		int id=Integer.parseInt(request.getParameter("boardId"));//request的返回值是String
		BoardBiz board=new BoardBiz();
		boolean flag=board.deleteBoard(id);
		 if(flag){
			 out.print("<script>alert('删除成功');location.href='boardList.jsp'</script>");
		 }else{
			 out.print("<script>alert('删除失败');location.href='boardList.jsp'</script>");
		 }
%>

